//
//  SchoolRecordBarChart.h
//  Learn
//
//  Created by zyl_macbookpro on 2024/4/7.
//  Copyright © 2024 迟建国. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SchoolRecordBarColor.h"
NS_ASSUME_NONNULL_BEGIN

@interface SchoolRecordBarChart : UIView
@property (strong, nonatomic) NSArray * xLabels;
@property (strong, nonatomic) NSArray * yLabels;
@property (strong, nonatomic) NSArray * yValues;
@property (strong, nonatomic) NSArray * colors;

@property (nonatomic) float xLabelWidth;
@property (nonatomic) float yValueMax;
@property (nonatomic) float yValueMin;

@property (nonatomic) float space;//两个bar时中间的缝隙

@property (nonatomic) CGRange chooseRange;


- (NSArray *)chartLabelsForX;

- (NSArray *)chartLabelsForY;

- (void)strokeChart;

- (void)addLines;
@end

NS_ASSUME_NONNULL_END
